﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;
using FrameworkManapro.Utilities;
using FrameworkManapro.WebUI;


namespace GMAC.ReportingSystem.Business.Components
{
    public class StateComponent : IBusinessComponent<Entities.State>
    {
        private DataAccess.StateDataAccess dac;

        public StateComponent()
        {
            dac = new DataAccess.StateDataAccess();
        }

        #region IBusinessComponent<State> Members

        public int Create(Entities.State entityToCreate)
        {
            throw new NotImplementedException();
        }

        public int Delete(Entities.State entityToDelete)
        {
            throw new NotImplementedException();
        }

        public int Edit(Entities.State entityToEdit)
        {
            throw new NotImplementedException();
        }

        public Entities.State GetDetails(object entityId)
        {
            return dac.Get(entityId);
        }


        #endregion


        public Entities.StateCollection GetList()
        {
            return dac.GetList();
        }



    }
}
